package com.example.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.example.dao.GoodsAdminDao;
import com.example.dao.SanJiLianDongDao;
import com.example.pojo.City;
import com.example.pojo.Country;
import com.example.pojo.Provice;
import com.example.service.GoodsAdminService;
import com.example.service.SanJiLianDongService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(interfaceClass = SanJiLianDongService.class)
public class SanJiLianDongServiceImpl implements SanJiLianDongService {

    @Autowired
    private SanJiLianDongDao sanJiLianDongDao;
    @Override
    public List<City> findCityById(String id) {


        return sanJiLianDongDao.findCityById(id);
    }

    @Override
    public List<Provice> findProvice() {
        return sanJiLianDongDao.findProvince();
    }

    @Override
    public List<Country> findCountryById(String id) {
        return sanJiLianDongDao.findCountryById(id);
    }
}
